package com.zjq.service;

import com.zjq.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    List<User> queryAllUser();

    List<User> queryUserByUserName(@Param("userName") String userName);

    List<User> queryUserByType(@Param("type") int type);

    User queryUserById(@Param("id") int id);

    int addUser(User user);

    int deleteUser(@Param("id") int id);

    int updateUser(User user);

    int updateUserType(@Param("type") int type);
}
